from rest_framework.routers import SimpleRouter
from . import views

from django.urls import path

router = SimpleRouter()

# http://127.0.0.1:8000/home/home_view/
router.register('product_report', views.ProductReportView, 'product_report')
router.register('dish_report', views.DishReportView, 'dish_report')


router.register('purchase_amount_quantity', views.PurchaseAmountQuantityView, 'purchase_amount_quantity')
router.register('sale_amount_quantity', views.SaleAmountQuantityView, 'sale_amount_quantity')

router.register('inventory_trend', views.InventoryTrendView, 'inventory_trend')
router.register('sales_trend', views.SalesTrendView, 'sales_trend')



urlpatterns = [
    # http://127.0.0.1:8000/home/product/1/inventory
    # path('product/<int:pk>/inventory', ProductInventoryView.as_view(), name='product_inventory'),
    # http://127.0.0.1:8000/home/products
    # path('products', vProductList.as_view(), name='product'),
    # # http://127.0.0.1:8000/home/sales_data
    # path('sales_data', SalesDataView.as_view(), name='sales_data'),
    # # http://127.0.0.1:8000/home/sales_dish_data
    # path('sales_dish_data', SalesRecordDetail.as_view(), name='sales_data'),
]
urlpatterns += router.urls
